import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import commonVaild from "@/utils/common-vaild.js";
import commonTools from "@/utils/common-tools.js";
import commonCzwjs from "@/utils/common-czw.js"
import Vconsole from "@/static/js/vconsole.min.js"

Vue.prototype.$commonTools = commonTools//赋值到vue里面 
Vue.prototype.$commonVaild = commonVaild//赋值到vue里面
Vue.prototype.$commonCzwjs = commonCzwjs//赋值到vue里面
// 调式控制台引入
if (process.env.ENV_TYPE === 'dev'||process.env.ENV_TYPE ==='test') {
let vConsole = new Vconsole()
Vue.use(vConsole) 
}  
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({ 
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif